package com.ls.thread.produce_consumer;

public class PcTest {
	
	public static void main(String[] args) {
		
		Stroe xh=new Stroe();
		
		Produce p1=new Produce(xh);
		Produce p2=new Produce(xh);
		Consumer c1=new Consumer(xh);
		
		Thread t1=new Thread(p1,"生产者1");
		Thread t2=new Thread(p2,"生产者2");
		Thread t3=new Thread(c1,"消费者1");
		
		t1.start();
		t2.start();
		t3.start();
		
		
	}

}
